package com.groupbuying.cheetah.order.orderManagement.service;

import com.groupbuying.cheetah.order.orderManagement.domain.OrderUshopDO;
import com.groupbuying.cheetah.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

public interface OrderService {

    OrderUshopDO get(String orderId);

    List<OrderUshopDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);


    /**
     * 根据id和时间查询订单
     *
     * @param
     * @return
     */
    ApiResult getDataByCustomer(Map<String,Object> map);

    /**
     * 根据counterId查询订单
     * @param
     * @return
     */
    ApiResult getOrderByCountId(Map<String,Object> map);

    /**
     * 根据时间查询订单
     * @param
     * @return
     */
    ApiResult getOrderByGmtTime(Map<String,Object> map);

    /**
     * 查询当天订单
     * @param map
     * @return
     */
    ApiResult getTodayOrder (Map <String, Object> map);

    /**
     * 获取每日成功订单数
     * @param map
     * @return
     */
    ApiResult countOrder(Map<String, Object> map);
}
